<?php


namespace App\Admin\Request\Tool;


use Newbie\NewbieFormRequest;

class GenerateUpdateRequest extends NewbieFormRequest {
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize (): bool {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules (): array {
        return [
            'id'             => 'require',
            'generate_type'  => 'require',
            'build_menu'     => 'require',
            'generate_menus' => 'require|array',
            'menu_name'      => 'require',
            'module_name'    => 'require',
            //'package_name' => '',
            'table_comment'  => 'require',
            'table_name'     => 'require',
            'type'           => 'require',
            'component_type' => 'require',
            'columns'        => 'require|array',
            //'belong_menu_id' => '',
            //'options' => '',
            //'remark' => '',
        ];
    }

    public function validated ($scene = '') {
        return parent::validated($scene); // TODO: Change the autogenerated stub
    }
}